
if not exist \app (
    md app
)
del /a /f /q app\*.apk

:: blue release
if exist "..\app\build\outputs\apk\app-blue-release.apk" (
    copy ..\app\build\outputs\apk\app-blue-release.apk app\app-blue-release.apk
    cd app
    java -jar ..\walle-cli-all.jar batch -f ..\channel.blue app-blue-release.apk
    cd ..
)
echo "Finished blue release channel!"

::  hucai release
if exist "..\app\build\outputs\apk\app-hucai-release.apk" (
    copy ..\app\build\outputs\apk\app-hucai-release.apk app\app-hucai-release.apk
    cd app
    java -jar ..\walle-cli-all.jar batch -f ..\channel.hucai app-hucai-release.apk
    cd ..
)
echo "Finished hucai release channel!"

exit
